package modelLayer;

public class Product {

	private int Id;
	protected String name;
	protected String description;
	//price per measure
	private double price;
	private double quantity;
	private String category;
	private String location;
	//measure unit for specific item
	private String measure;
	private double alert;




public Product(int id, String name, String description, double price,
			double quantity, String category, String location, double alert, String measure) {
		super();
		Id = id;
		this.name = name;
		this.description = description;
		this.price = price;
		this.quantity = quantity;
		this.category = category;
		this.location = location;
		this.measure = measure; 
		this.alert = alert;
		
	}



public String getMeasure() {
	return measure;
}



public void setMeasure(String measure) {
	this.measure = measure;
}



public double getAlert() {
	return alert;
}



public void setAlert(double alert) {
	this.alert = alert;
}



public double getQuantity() {
	return quantity;
}



public void setQuantity(double quantity) {
	this.quantity = quantity;
}



public String getCategory() {
	return category;
}



public void setCategory(String category) {
	this.category = category;
}



public String getLocation() {
	return location;
}



public void setLocation(String location) {
	this.location = location;
}



public void setId(int id) {
	Id = id;
}

public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public String getDescription() {
	return description;
}
public void setDescription(String description) {
	this.description = description;
}
public double getPrice() {
	return price;
}
public void setPrice(double price) {
	this.price = price;
}
public int getId() {
	return Id;
}

@Override
public String toString() {
	return "Item [Id=" + Id + ", name=" + name + ", description=" + description + ", quantity="
		+ quantity	+ ", price=" + price + "]";
}
public String save(){
	return 6+","+ Id+","+name+","+description+","+price+","+location+","+category+","+quantity+","+alert+","+measure;
}
}
